<!DOCTYPE html>
<html>
<!-- v1.6.7.2 RDPROJECT-26 sj 2013-12-24 新增页面-->
<#include "../head.html">
    <body>
    <table class="mc">
        <tr>
            <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
            <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="链接信息管理">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                                <div class="toolbor-module search">
                                    <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
                                </div>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post" name="form_modify_linkage" onsubmit="return check3();">
                                    <div class="valBox w750">
                                        <div class="top">
                                            <strong>修改链接信息</strong>
                                        </div>
                                        <div class="val clearfix">
                                            <ul class="editUserInfoX">
                                            	<li>
                                                    <div class="title">类型ID：</div>
                                                    <div class="v">
                                                        <select name="type_id">
                                                            <option value="0">无</option> <#if typeList ??> <#list typeList as obj>
                                                            <option value="${obj.id!}" <#if obj.id==linkage.type_id>
                                                            selected="selected"</#if>>${obj.name!}</option>
                                                        </#list> </#if>
                                                        </select>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">名称：</div>
                                                    <div class="v">
                                                        <input type="text"
                                                               value="<#if linkage??>${linkage.name!}</#if>"
                                                               id="name" name="name" maxlength="20" onKeyUp="value=value.replace(' ','')">
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">名称值：</div>
                                                    <div class="v">
                                                        <input type="text" class="input_border"
                                                               value="<#if linkage??>${linkage.value!}</#if>" name="value" id="value"
                                                               maxlength="20" onKeyUp="value=value.replace(' ','')">
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">排序：</div>
                                                    <div class="v">
                                                        <input type="text" class="input_border"
                                                               value="<#if linkage??>${linkage.order!}</#if>" name="order" id="order"
                                                               maxlength="2" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">PID：</div>
                                                    <div class="v">
                                                        <input type="text"
                                                               value="<#if linkage??>${linkage.pid!}</#if>"
                                                               id="pid" name="pid" maxlength="2" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">状&#12288;态：</div>
                                                    <div class="v">
                                                        <#assign status=true> <#if
                                                                (linkage?exists&&linkage.status?exists&&linkage.status==0) > <#assign
                                                                status=false> </#if> <input type="radio" name="status" value="1"<#if
                                                                status==true> checked="checked"</#if> />启用<input type="radio"
                                                                                                                  name="status" value="0"<#if status==false>
                                                            checked="checked"</#if> />不启用
                                                    </div>
                                                </li>
                                                
                                            </ul>
                                            <div class="other">
                                                <input type="hidden" name="actionType" value="modifyLinkage" />
                                                <input type="submit" value="提交" class="input-button post">
                                                <input type="reset" value="重置" class="input-button reset" name="reset" >
                                            </div>
                                        </div>
                                    </div>

                                </form>

                            </div>
            </td>
        </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
    <script type="text/javascript">
        function check3(){
        	var name = $("#name").val();
	    	var value = $("#value").val();
	    	var order = $("#order").val();
	    	var pid = $("#pid").val();
	    	if(name == "" || name == null){
	    		alert("名称必填");
	    		return false;
	    	}
			if(value == "" || value == null){
				alert("名称值必填");
				return false;
	    	}
			if(order == "" || order == null){
				alert("排序必填");
				return false;
			}
			if(pid == "" || pid == null){
				alert("pid必填");
				return false;
			}
			return true;
        }
    </script>
    </body>
</html>
<#include "../jsPage.html">